import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/projectexpenseslist',
    method: 'post',
    data,
  })
}

export function doAdd(data) {
  return request({
    url: '/projectexpensesadd',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/projectexpensesedit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/projectexpensesdelete',
    method: 'post',
    data,
  })
}

// 获取活动明细图片
export function getExpenseChecks(data) {
  return request({
    url: '/activityexpensescheckimg',
    method: 'post',
    data,
  })
}

// 上传活动明细图片
export function uploadExpenseChecks(data) {
  return request({
    url: '/activityexpensesupcheckimg',
    method: 'post',
    data,
  })
}

//获取自由者模板人员列表
export async function pullTempuserlist(data) {
  return request({
    url: '/projectexpensestempuserlist',
    method: 'post',
    data,
  })
}

export function updateTemplate(data) {
  return request({
    url: '/projectexpensestempexport',
    method: 'post',
    data
  })
}

export function updateExcel(data, id) {
  return request({
    url: `/projectexpensestempimport?activity_id=${id}`,
    method: 'post',
    data
  })
}


export function queryImportFile2(data) {
  return request({
    url: '/activityexpenseslist1export',
    method: 'post',
    data,
  })
}
